<?php
    require_once( CLASS_REQUIRE_INDEX );
    require_once( CLASS_REQUIRE_MODEL );
    require_once( CLASS_FUNCTIONS );    
        
    

    class ContatoController extends IndexController{
        
        
        public function __construct(){
            parent::__construct();            
           
        }
        
        public function defaultAction(){                    
            parent::setAttribute("lateral","main_lateral.html");
            parent::setAttribute("view","main_Contato.html");
            parent::execute("main_index.html");  
            
        }          
            
        public function Hora_dos_Perdidos(){
            parent::setAttribute("lateral","main_lateral.html");
            parent::setAttribute("view","main_hora_dos_perdidos.html");
            parent::execute("main_index.html");     
        } 
        
        public function Offline(){
            parent::setAttribute("lateral","main_lateral.html");
            parent::setAttribute("view","main_offline.html");
            parent::execute("main_index.html");   
        }   
    
       public function Pedido_Musical(){
            parent::setAttribute("lateral","main_lateral.html");
            parent::setAttribute("view","main_pedido_musical.html");
            parent::execute("main_index.html");  
       } 
       
       public function Salvar(){
           # obtem o valor do input "hidden" com o id de tipo 
           $tipo = parent::get_param("tipo");
           
           if($tipo == "offline"): $assunto = $tipo; endif;    
           if($tipo == "hora_dos_perdidos"): $assunto = "Hora dos Perdidos"; endif;    
           if($tipo == "pedido_musical"): $assunto = "Pedido Musical"; endif;    
                     
           
           
       }  
    
       
        
    
}            
            
?>
